import {
    dateFormat
} from "../../../common/utils/timeUtil";

export default class MyClassModel {
    constructor(param) {
        const {
            name,
            userId,
            createTime,
            memberExpirationDate,
            memberFlag
        } = param || {}
        this.name = name;
        this.userId = userId;
        this.createTime = createTime;
        this.memberExpirationDate = memberExpirationDate;
        this.memberFlag = memberFlag;
        this.createTimeString = dateFormat(new Date(this.createTime), "yyyy-MM-dd hh:mm:ss");
        this.expirationString = dateFormat(new Date(this.memberExpirationDate), "yyyy-MM-dd hh:mm:ss")
    }
}